using System;
using System.Globalization;
using jSLCore.Client.Presentation.jBinding;

namespace jSLApp.Client.Converters
{
    public class TrueToHandConverter : jChainConverter
    {
        public override object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return (bool)value ? System.Windows.Input.Cursors.Hand : System.Windows.Input.Cursors.Arrow;
            //We should use this converter,cause Cursor property does not have TypeConverter attribute and is not of type Cursors
        }

        public override object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }

        public override Type ThisType
        {
            get { return typeof (System.Windows.Input.Cursor); }
        }
    }
}